# Maintainer: Alexey Pavlov <alexpux@gmail.com>

pkgname=less
pkgver=481
pkgrel=1
pkgdesc="A terminal based program for viewing text files"
license=('GPL3')
arch=('i686' 'x86_64')
url="http://www.greenwoodsoftware.com/less"
groups=('base')
depends=('ncurses' 'libpcre')
makedepends=('ncurses-devel' 'pcre-devel')
source=(http://www.greenwoodsoftware.com/${pkgname}/${pkgname}-${pkgver}.tar.gz{,.sig})
md5sums=('50ef46065c65257141a7340123527767'
         'SKIP')

build() {
  cd ${srcdir}/${pkgname}-${pkgver}
  ./configure \
      --build=${CHOST} \
      --prefix=/usr \
      --sysconfdir=/etc \
      --with-regex=pcre
  make
}

package() {
  cd ${srcdir}/${pkgname}-${pkgver}
  make DESTDIR=${pkgdir} install
}
